package com.ee.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestDI {
	
	public static void main(String[] args) {
		 
		ApplicationContext a = new
				ClassPathXmlApplicationContext("applicationContext.xml");
	    UserService u = (UserService) a.getBean("userService");
	    u.say();
	}

}
